package com.macro.mall.service.impl;

import com.macro.mall.dao.UmsHomeDao;
import com.macro.mall.dto.HomeContentResult;
import com.macro.mall.service.UmsHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author：MinxiaoHao
 * @Description:
 * @name：HomeServiceImpl
 * @Date：2024/10/18 10:13
 */
@Service
public class UmsHomeServiceImpl implements UmsHomeService {
    @Autowired
    private UmsHomeDao homeMapper;

    /**
     * 首页内容信息展示
     */
    @Override
    public HomeContentResult content() {
        HomeContentResult homeContentResult = new HomeContentResult();
        homeContentResult.setBrandList(homeMapper.getRecommendBrandList());
        return homeContentResult;
    }
}
